/**
 * Project Name:Student.java
 * File Name:Student.java
 * Date:2019-03-04 22:18
 * Copyright (c) 2019, zhang.xiangyu@foxmail.com All Rights Reserved.
 */
package com.meatball.student.entity;

import com.meatball.utils.UUIDUtil;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @Title: Student.java
 * @Description: todo(实体)
 * @Author: 張翔宇
 * @Date: 2019-03-04 22:18
 * @Version: V1.0
 */
@Data
@Document
public class Student {
    @Id
    private String id = UUIDUtil.compressedUUID();
    private String name;
    private String phone;
    private String email;
    private Date birthday;

}
